# 调用 fill ingroup
function mountain:gen/fork/fill_ingroup

# 调用跨组
execute if score rendered mt_index < last_cnt_minus_1 mt_index run function mountain:gen/fork/fill_between
execute if score rendered mt_index = last_cnt_minus_1 mt_index run function mountain:gen/fork/fill_between_last_exception

# rendered +1
execute if score rendered mt_index < last_cnt_minus_1 mt_index run schedule function mountain:gen/fork/fill_loop 1s
scoreboard players add rendered mt_index 1